package com.systop.busafter.comment.service.impl;
import com.systop.busafter.comment.mapper.CommentMapper;
import com.systop.busafter.comment.service.CommentService;
import com.systop.commer.pojo.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentMapper commerMapper;

    @Override
    public int insertcomment(Comment comment) {
        return commerMapper.insertcomment( comment);
    }

    @Override
    public List<Comment> commentListall() {
        return commerMapper.commentListall();
    }

    @Override
    public List<Comment> commentIdlist(int comment_id) {
        return commerMapper.commentIdlist( comment_id);
    }

    @Override
    public Comment CommentId(int comment_id) {
        return commerMapper.CommentId( comment_id);
    }

    @Override
    public int deletecomment(int comment_id) {
        return commerMapper.deletecomment( comment_id);
    }

    @Override
    public List<Comment> commentuseridall(int comment_user_id) {
        return commerMapper.commentuseridall(comment_user_id);
    }

    @Override
    public List<Comment> commentdriveridall(int comment_driver_id) {
        return commerMapper.commentdriveridall(comment_driver_id);
    }

    @Override
    public List<Comment> commentuserfraction(Comment comment) {
        return commerMapper.commentuserfraction(comment);
    }

    @Override
    public List<Comment> commentdriverfraction(Comment comment) {
        return commerMapper.commentdriverfraction(comment);
    }
}
